package com.castle.fortress.admin.cms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.cms.dto.CmsSubjectDto;
import com.castle.fortress.admin.cms.entity.CmsSubjectEntity;
import com.castle.fortress.common.entity.RespBody;

import java.util.List;
import java.util.Map;

/**
 * cms专题配置表 服务类
 *
 * @author castle
 * @since 2022-03-07
 */
public interface CmsSubjectService extends IService<CmsSubjectEntity> {

    /**
     * 分页展示cms专题配置表列表
     * @param page
     * @param cmsSubjectDto
     * @return
     */
    IPage<CmsSubjectDto> pageCmsSubject(Page<CmsSubjectDto> page, CmsSubjectDto cmsSubjectDto);


    /**
     * 展示cms专题配置表列表
     * @param cmsSubjectDto
     * @return
     */
    List<CmsSubjectDto> listCmsSubject(CmsSubjectDto cmsSubjectDto);
    /**
     * 检查字段是否重复
     * @param dto
     * @return
     */
    RespBody checkColumnRepeat(CmsSubjectDto dto);
    /**
     * 用于cms标签
     * @param map
     * @return
     */
    List<CmsSubjectDto> cmsTagListCmsSpecial(Map<String, Object> map);
}
